<!--PUBLISH-->

<div style="width: 100%; display: none;">

    <h3>Datum i vrijeme objave</h3>

    <div id="cal">

        <div class="boxdatum">

            <table style="width: 450px;">
                <tr>
                    <td style="width: 17em; border-width: 0; vertical-align: top;">

                        <h6 style="margin-top: 23px;"><strong>POLUOBJAVA</strong></h6>

                        <div id="datumkomponenta1">

                            <div class="gifloader"></div>

                        </div>

                        <?
                            $datepublishhalf = mdate("%H:%i", now());
                            if (isset($article[0]['article_datepublishhalf'])){
                                $datepublishhalf =   mdate("%H:%i", $article[0]['article_datepublishhalf']);   
                                // echo $datepublish;
                            }

                        ?>
                        <input type="text" id="time1" value="<?=$datepublishhalf;?>" class="time1" style="margin-top: 3px; text-align: center; width: 43px;"> 
                    </td>
                    <td style="width: 17em;  padding-left: 13px; border-width: 0; vertical-align: top;">

                        <h6 style="margin-top: 23px;"><strong>OBJAVA</strong></h6>

                        <div id="datumkomponenta2">

                            <div class="gifloader"></div>

                        </div>

                        <?
                            $datepublish = mdate("%H:%i", now());
                            if (isset($article[0]['article_datepublish'])){
                                $datepublish =   mdate("%H:%i", $article[0]['article_datepublish']);   
                                // echo $datepublish;
                            }

                        ?>
                        <input type="text" id="time2" value="<?=$datepublish;?>" class="time2" style="margin-top: 3px; text-align: center; width: 43px;">
                    </td>
                    <td style="width: 17em;  padding-left: 13px; border-width: 0; vertical-align: top;">

                        <h6 style="margin-top: 23px;"><strong>TRAJE DO</strong></h6>

                        <div id="datumkomponenta3">

                            <div class="gifloader"></div>

                        </div>

                        <?
                            $datepublishend = mdate("%H:%i", now());
                            if (isset($article[0]['article_datepublishend'])){
                                $datepublishend =   mdate("%H:%i", $article[0]['article_datepublishend']);   
                                // echo $datepublish;
                            }

                        ?>
                        <input type="text" id="time3" value="<?=$datepublishend;?>" class="time3" style="margin-top: 3px; text-align: center; width: 43px;">
                    </td>
                </tr>
            </table>

            <div>
                <input type="checkbox" name="articlestatus" id="articlestatus" <? if (isset($article[0]['article_datepublishend'])){if($article[0]['article_status'] == 1)echo 'checked="checked"';} ?>> Aktiviraj članak
            </div>

        </div>

    </div> 

    <div id="srvrserror-4"></div>

    <hr>

    <button id="prev_4" class="small prev icon i_arrow_left">Povratak</button>
    <button id="finish" class="small icon i_breadcrumb">Završi unos</button>  

</div>